A Pragmatic Reconstruction of lambda-Prolog

نویسندگان

  • Catherine Belleannée
  • Pascal Brisset
  • Olivier Ridoux
چکیده

Prolog is a logic programming language in which hereditary Harrop formulas generalise Horn formulas, and simply typed-terms generalise Prolog terms. One may wonder whether these extensions are simultaneously required, and if it exists useful subsets of Prolog, at least for pedagogical purposes. We answer this question by exhibiting a network of necessity links between the new features of Prolog. A handy programming heuristic can be proposed after these necessity links for deening relations by induction on types. Une reconstruction pragmatique de LambdaProlog R esum e : Prolog est un langage de programmation logique dont les clauses sont des formules h er editaires de Harrop, qui g en eralisent les formules de Horn, et dont le domaine de calcul est celui des-termes simplement typ es, qui g en eralisent les termes de Prolog. On peut se demander si toutes ces extensions sont n ecessaires simultan ement et si des langages interm ediaires int eressants ne pourraient pas ^ etre d eenis, au moins dans un but p edagogique. Nous r epondons a cette question en montrant que des liens de n ecessit e conduisent a adopter toutes les extensions a partir du moment o u le langage de termes de Prolog est etendu a celui des-termes simplement typ es modulo la-equivalence. De cette reconstruction d ecoule une heuristique de programmation par induction sur les types qui est un guide commode pour utiliser Prolog.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Typed Prolog: A Semantic Reconstruction of the Mycroft-O'Keefe Type System

Mycroft and O'Keefe 25] presented a declaration-based type system for Pro-log. However, they did not clarify the semantics of the type system, leading to several criticisms being voiced against it. We propose that the language accepted by this type system be viewed as a typed variant of Prolog, called Typed Prolog. We deene the formal semantics of Typed Prolog along the lines of many-sorted log...

متن کامل

A symbolic and algebraic computation based Lambda-Boolean reduction machine via PROLOG

This paper presents a new Lambda-Boolean reduction machine for Lambda-Boolean and Lambda-Beta Boolean reductions in the context of Lambda Calculus and introduces the role of Church–Rosser properties and functional computation model in symbolic and algebraic computation with induction. The algorithm which improved for Lambda-Beta Boolean reduction is simulated by the efficient logical programmin...

متن کامل

On Type-directed Generation of Lambda Terms

We describe a Prolog-based combined lambda term generator and type-inferrer for closed well-typed terms of a given size, in de Bruijn notation. By taking advantage of Prolog’s unique bidirectional execution model and sound unification algorithm, our generator can build “customized” closed terms of a given type. This relational view of terms and their types enables the discovery of interesting p...

متن کامل

A functional computation model for the duality of two-variable Lambda-Boolean functions

This paper presents a new functional computation model for developing a class of two-variable Lambda-Boolean functions, and describes the properties of the duality principle on this model. With respect to this aim, some definitions and theorems which construct the model of the two-variable Lambda-Boolean functions are given. The simulation of the model is implemented in the programming language...

متن کامل

Ranking/Unranking of Lambda Terms with Compressed de Bruijn Indices

We introduce a compressed de Bruijn representation of lambda terms and define its bijections to standard representations. Our compressed terms facilitate derivation of size-proportionate ranking and unranking algorithms of lambda terms and their inferred simple types. We specify our algorithms as a literate Prolog program.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Log. Program.

دوره 41  شماره 

صفحات  -

تاریخ انتشار 1999